<template>
  <Child @success="getMessage" />
  <Child @success="getMessage" :age="age" />
</template>
<script setup>
import { ref } from "vue";
import Child from "./儿子.vue";
const getMessage = (value, xxx) => {
  age.value = value;
  console.log(value, xxx);
};
const age = ref(31);
</script>
<style></style>
